html,body{
  height: 100%;
}
#ChatRoom{
  position: fixed;
  top:0;
  left: 0;
  background-color: #fff;
  width: 100%;
  height: 100%;
  display: none;
  font-size: .16rem;
  z-index: 1000;

  .supplier-info{
    padding: .13rem .15rem;
    box-sizing: border-box;
    height: 1.2rem;
    background-color: #4785f9;
    margin-top: 0;
    position: relative;
    color: #fff;

    .goBack{
      display: block;
      line-height: .2rem;
    }
    p{margin:0;}
    .media-heading{
      font-size: .24rem;
      line-height: .24rem;
      margin: .18rem 0  .1rem;
      color: #fff;
      text-align: left;
      font-weight: 600;
    }
    .com{
      font-size: .14rem;
      line-height: .14rem;
      margin-bottom: .08rem;
      text-decoration: none;
      color: #fff;
    }
    .avatar{
      position: absolute;
      right: .15rem;
      top: .4rem;
      width: .6rem;
      height: .6rem;
      border-radius: 50%;
    }
  }
  .msg-pane{
    padding: .2rem .15rem;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    height: calc(100% - 1.7rem);
    background-color: #f7f7f7;
    box-sizing: border-box;
  }
  .one-message {
    text-align: left;
    margin-bottom: .15rem;
    position: relative;

    .text-link{
      color: #4785f9;
      text-decoration: underline;
    }
  }
  .msgfrom-info{
    height: .12rem;
    margin-bottom: .07rem;
    font-size: .12rem;
    color: #b3b5b7;
  }
  .user-head-icon {
    display: inline-block;
    width: .32rem;
    height: .32rem;
    line-height: .32rem;
    border-radius: 50%;
    color: #fff;
    font-size: .16rem;
    text-align: center;
    margin-right: .1rem;
  }
  .msgbody {
    position: relative;
    display: inline-block;
    line-height: 1;
    vertical-align: top;
    width: 75%;

    pre {
      display: inline-block;
      text-align: left;
      padding: .07rem .1rem;
      font-size: .14rem;
      line-height: .2rem;
      color: #212022;
      background-color: #fff;
      margin: 0;
      border-radius: 4px;
      white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
      white-space: -o-pre-wrap; /* Opera 7 */
      word-wrap: break-word; /* Internet Explorer 5.5+ */
      white-space: pre-wrap;
      border: none;

      i{
        display: none;
      }
      .demand-label{
        display: block;
        width: 100%;
        height: 60px;
        line-height: 60px;
        background: #FFFFFF;
        border: 1px solid #E3E8EE;
        font-size: 14px;
        font-weight: bold;
        color: #212022;
        text-align: center;
        margin-top: 10px;

        span{
          display: inline-block;
          vertical-align: middle;
          width: 32px;
          height: 32px;
          border-radius: 50%;
          border: 1px solid #4785f9;
          line-height: 32px;
          font-weight: 300;
          font-size: 16px;
          margin-right: 10px;
          color: #4785f9;
        }
      }
    }
    .chat-img {
      max-width: 100%;
      padding: 6px;
      border-radius: 4px;
      background-color: #fff;
    }
    .triangle {
      width: 8px;
      height: 10px;
      position: absolute;
      left: -6px;
      top: 12px;
      display: block;
    }
  }
  .self-msg {
    text-align: right;

    .msgbody .triangle {
      left: auto;
      right: -6px;
    }
    .user-head-icon {
      float: right;
      margin-right: 0;
      margin-left: .1rem;
    }
    pre {
      color: #fff;
      background-color: #8f8f8f;
    }
    .chat-img{
      background-color: #8f8f8f;
    }
  }
  .input-pane {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: .5rem;
    z-index: 9;
    line-height: .5rem;
    overflow: hidden;
    border-top: 1px solid #e3e8ee;
    background-color: #fff;

    #input, #input:hover, #input:focus, #input:hover:focus, #input:active, #input[disabled=''] {
      width: 100%;
      width: -webkit-calc(100% - 115px);
      width: calc(100% - 115px);
      height: .26rem;
      font-size: .14rem;
      color: #212022;
      line-height: .26rem;
      outline: 0;
      border: none;
      padding-left: .15rem;
      -webkit-box-shadow: none;
      box-shadow: none;
      background-color: #fff;
      display: inline-block;
      resize: none;
      overflow-y: visible;
      word-wrap: break-word;
      white-space: pre-wrap;
      word-break: keep-all;

    }
    #sendMsg {
      position: absolute;
      bottom: .1rem;
      right: .15rem;
      font-size: .14rem;
      line-height: .14rem;
      width: 66px;
      height: .3rem;
      border-radius: .3rem;
      padding: 0;
      color: #fff;
      border: none;
      box-shadow: none;
      outline: none;
    }
  }
}

